package com.it.util;

public class ThreadLocalUtil {
    private static final ThreadLocal<Long> userInfo = new ThreadLocal<Long>();

    public static void setUserId(Long userId) {
        userInfo.set(userId);
    }
    public static Long getUserId() {
        return userInfo.get();
    }
    public static void removeUserId() {
        userInfo.remove();
    }
}
